package com.lanyam.travel.base.service;

import java.util.List;

import com.lanyam.travel.base.entity.TravelMenu;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author rosson
 * @since 2020-02-24
 */
public interface ITravelMenuService{

	List<TravelMenu> getAllFatherMenu();

	int getFatherMenuMaxIndex();

	int getChildMenuMaxIndex(String fatherId);

	void addTravleMenu(TravelMenu menu);

	void updateMenu(TravelMenu menu);

	TravelMenu getMenuById(String id);

	void deleteByFatherId(String fatherId);

	void deleteById(String id);

	List<TravelMenu> getAllMenu();

	List<TravelMenu> searchMenu(String name);

}
